From 0df1914d8f6bd0577ba5f82dc710c67ebadc54b3 Mon Sep 17 00:00:00 2001 From: Bastian Germann Date: Fri, 22 Aug 2025 13:15:18 +0200 Subject: [PATCH] Check only major OpenSSL version The version check was written during OpenSSL 0.9 era. It is not needed in Debian and only getting in the way. Gbp-Pq: Name Check-only-major-OpenSSL-version.patch --- src/modules/tls/tls_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/tls/tls_init.c b/src/modules/tls/tls_init.c index 77af27d8..a32f61f2 100644 --- a/src/modules/tls/tls_init.c +++ b/src/modules/tls/tls_init.c @@ -866,7 +866,7 @@ int tls_h_mod_init_f(void) * (e.g. 0.9.8a & 0.9.8c are ok, but 0.9.8 and 0.9.9x are not) * - values is represented as 0xMMNNFFPPS: major minor fix patch status * 0x00090705f == 0.9.7e release */ - if((ssl_version >> 12) != (OPENSSL_VERSION_NUMBER >> 12)) { + if((ssl_version >> 28) != (OPENSSL_VERSION_NUMBER >> 28)) { LM_CRIT("installed openssl library" " version is too different from the library the " NAME " tls" " module was compiled with: installed \"%s\" (0x%08lx)," -- 2.30.2